﻿namespace ExamV5.LineStudyExam
{
    using ExamV5;
    using System;
    using System.Web.UI;
    using System.Web.UI.HtmlControls;

    public class DelStudyForumInfo : Page
    {
        protected HtmlForm form1;

        protected void Page_Load(object sender, EventArgs e)
        {
            PublicFun fun = new PublicFun();
            string str = "0";
            string str2 = "0";
            str = fun.CheckString(base.Request.QueryString["ID"]);
            str2 = fun.CheckString(base.Request.QueryString["RubricID"]);
            string str3 = fun.CheckString(base.Request["Flag"].ToString());
            fun.ExecuteSql("Delete from  StudyForum where RubricType='" + str3 + "' and RubricID=" + str2 + " and ID=" + str);
            base.Response.Write("<script>alert('删除信息成功！')</script>");
            this.Page.Response.Write("<script>setTimeout(function(){window.location='FrmForumStudy.aspx?Flag=" + str3 + "&ID=" + str2 + "'},500)</script>");
        }
    }
}

